package com.bbcare.comm;

/**
 * @name: 错误码定义类
 * @author: DemonLee
 * @createTime: 2017.4.28
 * @description: 错误码定义规则：
 * 
 *               应用编号 + 功能域 + 错误编号
 * 
 *               如：
 * 
 *               应用编号：在线医疗服务基础平台 101
 * 
 *               功能域：患者相关 201
 * 
 *               错误编码：账号不存在 0001
 * 
 *               账号不存在 = 1012010001
 * @modify:
 * 
 */
public class ErrorCode {
    // 应用编码基数
    private static final long appBasic = 10000000;
    // 功能域基数
    private static final long funcBasic = 10000;

    // 计算错误码
    static String assembleErrCode(long appCode, long funCode, long errCode) {
        return "" + (appCode * appBasic + funCode * funcBasic + errCode);
    }

    // -----------------随访系统 Begin-----------------//
    // 应用编号：201
    private static final long fuAppCode = 201;
    // 公共错误域：200
    private static final long fuPubFuncCode = 200;
    // 患者域：201
    private static final long fuPatientFuncCode = 201;
    // 方案域：202
    private static final long fuSchemeFuncCode = 202;
    // 队列域：203
    private static final long fuQueueFuncCode = 203;
    // 任务域：204
    private static final long fuTaskFuncCode = 204;
    // 问卷域：205
    private static final long fuQuestionFuncCode = 205;
    // redis域：206
    private static final long fuRedisFuncCode = 206;
    // 静态配置数据域：207
    private static final long fuStaticFuncCode = 207;
    // 数据监控
    private static final long fuMonitorFuncCode = 208;

    // 营养方案应用
    private static final long fuNtSchemeUsedFuncCode = 209;

    // 公共域错误
    /**
     * 入参格式错误，如非json格式，longeger传String等
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_INPUT_DATA_FORMAT_ERROR = assembleErrCode(fuAppCode,
            fuPubFuncCode, 1);
    /**
     * 入参数据校验失败，如参数未传、值为空等
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_INPUT_DATA_VERIFY_ERROR = assembleErrCode(fuAppCode,
            fuPubFuncCode, 2);

    /**
     * 图片上传失败，上传文件为空
     */
    public static final String FOLLOW_EXCEPTION_TYPE_UPLOAD_FILE_MPTY = assembleErrCode(fuAppCode, fuPubFuncCode, 3);
    /**
     * 日期时间格式解析错误
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_DATE_PARSE_ERROR = assembleErrCode(fuAppCode, fuPubFuncCode, 4);
    /**
     * session为空
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SESSION_ISNULL = assembleErrCode(fuAppCode, fuPubFuncCode, 5);
    /**
     * session值为空
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SESSION_VALUEISNULL = assembleErrCode(fuAppCode, fuPubFuncCode,
            6);
    /**
     * 出生日期大于当前时间
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_BIRTHDAY_EXPEND_NOW = assembleErrCode(fuAppCode, fuPubFuncCode,
            7);
    /**
     * 租户类型未定义
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_TENANT_TYPE_UNKNOWN = assembleErrCode(fuAppCode, fuPubFuncCode,
            8);
    /**
     * 公共校验 app端接入 没有传入渠道id
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_INPUT_CHANNEL_IS_NULL = assembleErrCode(fuAppCode, fuPubFuncCode,
            9);
    /**
     * 调用外部接口服务异常
     */
    public static final String EXCEPTION_TYPE_SYSTEM_SERVICE_CALL_EXCP = assembleErrCode(fuAppCode, fuPubFuncCode, 10);

    /**
     * 调用外部短信接口服务异常
     */
    public static final String EXCEPTION_TYPE_SYSTEM_OUTSMS_SERVICE_CALL_EXCP = assembleErrCode(fuAppCode,
            fuPubFuncCode, 11);

    public static final String EXCEPTION_WECHATID_NOT_BIND_PHONENUM = assembleErrCode(fuAppCode, fuPubFuncCode, 12);

    public static final String EXCEPTION_WECHAT_COUNT_NOT_EXIST = assembleErrCode(fuAppCode, fuPubFuncCode, 13);

    public static final String EXCEPTION_WECHAT_SYSTEM_ERROR = assembleErrCode(fuAppCode, fuPubFuncCode, 14);

    // 患者域错误
    /**
     * 查询患者记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_NOT_EXIST = assembleErrCode(fuAppCode, fuPatientFuncCode,
            1);
    /**
     * 查询患者任务记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_TASK_NOT_EXIST = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 2);
    /**
     * 查询患者队列实例表记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_QUEUE_NOT_EXIST = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 3);
    /**
     * 患者已经加入该队列，禁止重复加入
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_QUEUE_ALREADY_EXIST = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 4);
    /**
     * 患者在该队列中状态为暂停
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_QUEUE_STATUS_SUSPEND = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 5);

    /**
     * 患者在队列中状态非暂停
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_QUEUE_STATUS_NOT_SUSPEND = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 6);

    /**
     * 患者在队列中状态不正常
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_QUEUE_STATUS_NOT_NORMAL = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 7);

    /**
     * 患者在该队列中状态为待审核
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_QUEUE_STATUS_AUDIT = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 8);
    /**
     * 患者任务状态非初始化状态
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_TASKSTATUS_NOT_INIT = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 9);

    /**
     * 生长发育标准数据不存在
     */
    public static final String FOLLOWUP_EXCEPTION_GROWTHS_STANDARD_WHO_NOT_EXIST = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 10);

    /**
     * 患者创建消息同步 app服务端
     */
    public static final String FOLLOWUP_EXCEPTION_PATIENT_SYN_ERROR = assembleErrCode(fuAppCode, fuPatientFuncCode, 11);

    /**
     * 查询患者任务失访记录已经存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_LOSTRD_ALREADY_EXIST = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 12);

    /**
     * 患者当前周期内随访短信已发送
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_SFTXDX_HAS_SENT = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 13);

    /**
     * 患者当前窗口期内随访短信最大发送次数
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_SFTXDX_LIMITNUM = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 14);

    /**
     * 年龄超过生长发育测试标准年龄
     */
    public static final String FOLLOWUP_EXCEPTION_GROWTHS_STANDARD_WHO_AGE_OVER_MAXAGE = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 15);

    /**
     * 患者在队列中状态已删除
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_QUEUE_STATUS_HAS_REMOVED = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 16);

    /**
     * 患者无法添加新的临时任务
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_CANNOT_ADD_TEMP_TASK = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 17);

    /**
     * 患者操作记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_IAOPR_RECORD_NOT_EXISTS = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 18);

    /**
     * FENTON标准数据不存在
     */
    public static final String FOLLOWUP_EXCEPTION_GROWTHS_STANDARD_FENTON_NOT_EXIST = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 20);
    /**
     * 用户生日不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_BIRTHDAY_NOT_EXIST = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 21);
    /**
     * 患者已经随访过
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PATIENT_HAS_OUTPATIENT = assembleErrCode(fuAppCode,
            fuPatientFuncCode, 22);

    /**
     * 年龄不在次范围
     */
    public static final String FOLLOWUP_EXCEPTION_AGE_OUT_RANGE = assembleErrCode(fuAppCode, fuPatientFuncCode, 23);

    // 方案域错误
    /**
     * 配置表方案记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEME_NOT_EXIST = assembleErrCode(fuAppCode, fuSchemeFuncCode,
            1);
    /**
     * 配置表方案名称已经存在，不能重复创建
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEME_NAME_ALREADY_EXIST = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 2);
    /**
     * 配置表方案已经运用到队列中
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEME_ALREADY_USED = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 3);
    /**
     * 配置表方案记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEMEVERSION_NOT_EXIST = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 4);
    /**
     * 配置表方案下任务记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEME_TASK_NOT_EXIST = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 5);
    /**
     * 配置表方案状态为已删除
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEME_ALREADY_DELETE = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 6);
    /**
     * 配置表方案状态为非定义
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEME_STATUS_UNKNOWN = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 7);
    /**
     * 配置表方案状态不合理
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEME_STATUS_IRREGULAR = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 8);
    /**
     * 任务下内容模板已经存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SCHEME_TASKCONT_TEMPL_ALREADY_EXIST = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 9);
    /**
     * 任务下内容模板已经存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_SCHEME_BUSITYPE_INCOMPATIBLE = assembleErrCode(fuAppCode,
            fuSchemeFuncCode, 10);

    // 队列域错误
    /**
     * 配置表队列记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_NOT_EXIST = assembleErrCode(fuAppCode, fuQueueFuncCode, 1);
    /**
     * 队列状态不正常
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_STATUS_IRREGULAR = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 2);

    /**
     * 队列有正在管理的患者
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_HAVE_MANAGERPATIENTS = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 3);

    /**
     * 当前医生不是管理员 不能转移管理员
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_NOT_MANAGERDOCTOR = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 4);

    /**
     * 该用户无可查看队列信息
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_HAS_NO_QUEUE_AUTHORITY = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 5);

    /**
     * 队列目标人数配置错误
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_TARGETNUM_CONFIG_ERROR = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 6);

    /**
     * 队列当前人数已达到目标人数上限，无法继续添加新患者
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_TARGETNUM_LIMIT = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 7);

    /**
     * 该科室没有配置默认队列
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_DEPARTMENT_DEFAULT_QUEUE_NOT_EXIST = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 8);

    /**
     * 队列对应科室id未配置
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_FOR_DEPT_NOT_EXIST = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 9);

    /**
     * 队列对应租户id未配置
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_FOR_TENANT_NOT_EXIST = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 11);

    /**
     * 队列下未配置方案
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_SCHEMEID_NOT_EXIST = assembleErrCode(fuAppCode,
            fuQueueFuncCode, 12);

    /**
     * 队列下未配置建档任务内容
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_SCHEMEID_ARCHIVE_TASKCONT_NOT_EXIST = assembleErrCode(
            fuAppCode, fuQueueFuncCode, 13);

    /**
     * 队列下未配置建档任务id
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUEUE_SCHEMEID_ARCHIVE_TASK_NOT_EXIST = assembleErrCode(
            fuAppCode, fuQueueFuncCode, 14);

    // 任务域错误
    /**
     * 配置表任务记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_TASK_NOT_EXIST = assembleErrCode(fuAppCode, fuTaskFuncCode, 1);
    /**
     * 任务内容记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_TASKCONTENT_NOT_EXIST = assembleErrCode(fuAppCode,
            fuTaskFuncCode, 2);
    /**
     * 任务触发方式未定义
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_TASKEXECUTETYPE_UNKNOWN = assembleErrCode(fuAppCode,
            fuTaskFuncCode, 3);
    /**
     * 任务按出院后触发，需要填写出院日期
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_TASKEXECUTETYPE_OUTHOSPITAL_PARAM = assembleErrCode(fuAppCode,
            fuTaskFuncCode, 4);

    // 问卷域错误
    /**
     * 问卷模板记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUES_TEMPL_NOT_EXIST = assembleErrCode(fuAppCode,
            fuQuestionFuncCode, 1);
    /**
     * 问卷模板版本记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUES_TEMPLVERSION_NOT_EXIST = assembleErrCode(fuAppCode,
            fuQuestionFuncCode, 2);
    /**
     * 问卷模板内容为空
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUES_TEMPLDATA_IS_NULL = assembleErrCode(fuAppCode,
            fuQuestionFuncCode, 3);
    /**
     * 问卷模板内容json格式配置问题
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_QUES_TEMPLDATA_CONFIG_IRREGULAR = assembleErrCode(fuAppCode,
            fuQuestionFuncCode, 4);

    // redis域错误
    /**
     * redis连接异常
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_REDIS_CONNECT_ERROR = assembleErrCode(fuAppCode, fuRedisFuncCode,
            1);
    /**
     * redis连接关闭异常
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_REDIS_CONNECT_CLOSE_FAILED = assembleErrCode(fuAppCode,
            fuRedisFuncCode, 2);

    // 静态配置数据域错误
    /**
     * 操作编码记录未配置
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_STATIC_OPCODE_NOT_EXIST = assembleErrCode(fuAppCode,
            fuStaticFuncCode, 1);
    /**
     * 随访提醒规则未配置
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_TASK_INFORMRULE_NOT_EXIST = assembleErrCode(fuAppCode,
            fuStaticFuncCode, 2);
    /**
     * 随访提醒类型未定义
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_TASK_INFORMRULETYPE_UNKNOWN = assembleErrCode(fuAppCode,
            fuStaticFuncCode, 3);
    /**
     * 短信模板未配置
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SMS_TEMPL_NOT_EXIST = assembleErrCode(fuAppCode,
            fuStaticFuncCode, 4);
    /**
     * 短信模板内容为空
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SMS_TEMPL_CONTENT_ISNULL = assembleErrCode(fuAppCode,
            fuStaticFuncCode, 5);
    /**
     * 服务接口配置表未配置
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_SERVICEDICT_IS_NOT_EXIST = assembleErrCode(fuAppCode,
            fuStaticFuncCode, 6);
    /**
     * 静态配置表记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_STATIC_CONFIG_NOT_EXIST = assembleErrCode(fuAppCode,
            fuStaticFuncCode, 7);

    // 数据监测
    /**
     * 氧饱脉率记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_PULSERATE_NOT_EXIST = assembleErrCode(fuAppCode,
            fuMonitorFuncCode, 1);

    /**
     * 体温记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_TEMPERATURE_NOT_EXIST = assembleErrCode(fuAppCode,
            fuMonitorFuncCode, 2);

    /**
     * 生长发育记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_GROWTH_NOT_EXIST = assembleErrCode(fuAppCode, fuMonitorFuncCode,
            3);

    /**
     * 随访评估记录不存在
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_EVALUATION_NOT_EXIST = assembleErrCode(fuAppCode,
            fuMonitorFuncCode, 4);

    /**
     * 年龄不在评测范围内
     */
    public static final String FOLLOWUP_EXCEPTION_TYPE_EVALUATION_AGE_OUTRANGE = assembleErrCode(fuAppCode,
            fuMonitorFuncCode, 5);

    /**
     * 无效二维码
     */
    public static final String FOLLOWUP_EXCEPTION_QRCODE_INVALID = assembleErrCode(fuAppCode, fuMonitorFuncCode, 6);

    // -----------------随访系统 End-----------------//

    // -----------------科室管理 Begin-----------------//
    // 科室资料管理
    private static final long fuDepartmemtFuncCode = 301;
    // 医生管理
    private static final long fuDoctorFuncCode = 302;
    // 宣教管理
    private static final long fuEducationFuncCode = 303;

    // 随访门诊排班
    /**
     * 重复排班
     */
    public static final String DEPARTMENT_EXCEPTION_TYPE_DUPLICATE_OUTPATIENT_SCHEDULE = assembleErrCode(fuAppCode,
            fuDepartmemtFuncCode, 1);
    /**
     * 科室无随访排班
     */
    public static final String DEPARTMENT_EXCEPTION_TYPE_OUTPATIENT_SCHEDULE_ISNULL = assembleErrCode(fuAppCode,
            fuDepartmemtFuncCode, 2);

    /**
     * 科室不存在
     */
    public static final String DEPARTMENT_EXCEPTION_TYPE_DEPARTMENT_NOT_EXIST = assembleErrCode(fuAppCode,
            fuDepartmemtFuncCode, 3);

    /**
     * 医生信息不存在
     */
    public static final String DEPARTMENT_EXCEPTION_TYPE_DOCTOR_NOT_EXIST = assembleErrCode(fuAppCode, fuDoctorFuncCode,
            1);
    /**
     * 当flag=0时 scheduleID不能为空
     */
    public static final String DEPARTMENT_EXCEPTION_TYPE_SCHEDULEID_NOT_EXIST = assembleErrCode(fuAppCode,
            fuDoctorFuncCode, 2);

    /**
     * 宣教模板不存在
     */
    public static final String DEPARTMENT_EXCEPTION_TYPE_EDUCATION_TEMPLATE_NOT_EXIST = assembleErrCode(fuAppCode,
            fuEducationFuncCode, 1);

    /**
     * 宣教内容不存在
     */
    public static final String DEPARTMENT_EXCEPTION_TYPE_EDUCATION_NOT_EXIST = assembleErrCode(fuAppCode,
            fuEducationFuncCode, 2);
    // -----------------科室管理 end-----------------//

    // 营养方案不存在
    public static final String NUTRITION_EXCEPTION_TYPE_INPUT_DATA_FORMAT_ERROR = assembleErrCode(fuAppCode,
            fuNtSchemeUsedFuncCode, 1);
    // 营养疗程版本不存在
    public static final String FOLLOWUP_EXCEPTION_NUTRITION_COURSEVERSION_NOT_EXISTS_ERROR = assembleErrCode(fuAppCode,
            fuNtSchemeUsedFuncCode, 2);
    // 食物不存在
    public static final String FOLLOWUP_EXCEPTION_NUTRITION_FOOD_NOT_EXISTS_ERROR = assembleErrCode(fuAppCode,
            fuNtSchemeUsedFuncCode, 3);
    // 阶段疗程不存
    public static final String FOLLOWUP_EXCEPTION_NUTRITION_STAGE_COURSE_NOT_EXISTS = assembleErrCode(fuAppCode,
            fuNtSchemeUsedFuncCode, 4);
    // 疗程类型不存
    public static final String FOLLOWUP_EXCEPTION_NUTRITION_COURSETYPE_NOT_EXISTS = assembleErrCode(fuAppCode,
            fuNtSchemeUsedFuncCode, 5);
    // 疗程营养元素不存在
    public static final String FOLLOWUP_EXCEPTION_NUTRITION_ELEMENTS_NOT_EXISTS = assembleErrCode(fuAppCode,
            fuNtSchemeUsedFuncCode, 6);
    // 营养方案阶段不存在
    public static final String FOLLOWUP_EXCEPTION_NUTRITION_STAGE_NOT_EXISTS = assembleErrCode(fuAppCode,
            fuNtSchemeUsedFuncCode, 7);

    // -----------------影像管理 Begin-----------------//
    // 影像应用
    private static final long imgCollectionAppCode = 400;
    // 影像设备域
    private static final long imgEquipFuncCode = 401;

    // 影像设备已存在
    public static final String IMG_EXCEPTION_EQUIP_HAS_ALREADY_EXISTS = assembleErrCode(imgCollectionAppCode,
            imgEquipFuncCode, 1);
    // 小程序id已经绑定其他设备
    public static final String IMG_EXCEPTION_EQUIP_PROGRAMID_HAS_ALREADY_BINDING = assembleErrCode(imgCollectionAppCode,
            imgEquipFuncCode, 2);
    // 影像设备不存在
    public static final String IMG_EXCEPTION_EQUIP_NOT_EXISTS = assembleErrCode(imgCollectionAppCode, imgEquipFuncCode,
            3);
    // 小程序注册信息不存在
    public static final String IMG_EXCEPTION_PROGRAM_NOT_EXISTS = assembleErrCode(imgCollectionAppCode,
            imgEquipFuncCode, 4);
    // 一个小程序id绑定多台设备
    public static final String IMG_EXCEPTION_PROGRAMID_BIND_MULTIEQUIP = assembleErrCode(imgCollectionAppCode,
            imgEquipFuncCode, 5);
    // 租户id配置为空
    public static final String IMG_EXCEPTION_TENANTID_ISNULL = assembleErrCode(imgCollectionAppCode, imgEquipFuncCode,
            6);
    // 不支持的上传方式
    public static final String IMG_EXCEPTION_IMG_UPLOADTYPE_NOT_SUPPORT = assembleErrCode(imgCollectionAppCode,
            imgEquipFuncCode, 7);
    // 影像文件不存在
    public static final String IMG_EXCEPTION_IMG_NOT_EXISTS = assembleErrCode(imgCollectionAppCode, imgEquipFuncCode,
            8);
    // 影像文件标记记录不存在
    public static final String IMG_EXCEPTION_IMGMARK_NOT_EXISTS = assembleErrCode(imgCollectionAppCode,
            imgEquipFuncCode, 9);
    // 小程序注册信息已失效
    public static final String IMG_EXCEPTION_PROGRAM_IS_INVALID = assembleErrCode(imgCollectionAppCode,
            imgEquipFuncCode, 10);
    // 获取带签名的访问地址失败
    public static final String IMG_EXCEPTION_GET_SIGN_URL = assembleErrCode(imgCollectionAppCode, imgEquipFuncCode, 11);
    // 影像文件绑定不同患者
    public static final String IMG_EXCEPTION_IMG_FILE_BINDING_MULTI_PATIENT = assembleErrCode(imgCollectionAppCode,
            imgEquipFuncCode, 12);

    // -----------------影像管理 End-----------------//

}
